Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #231
Major Features Implemented
Search Functionality
Real-time search on title, tags, and author.
Graceful fallback with "No results found" message.
Tag Filtering
Interactive tag filter in sidebar.
Smooth animated selection with badge counts.
Collapsible tag list with +X more and tooltip/expander.
Sidebar Improvements
Fully collapsible sidebar (horizontal + vertical).
Hide/Show filters expands content to full screen.
Elegant toggle button with transition and icons.
Sorting Options
Latest, Popular, Oldest
Animated and highlighted with active state.
Like Button
Like/unlike feature with count update.
Saved state maintained with localStorage.
Save for Later
Save/Unsave newsletters.
LocalStorage persistence.
Show Saved Only toggle button added in sidebar.
Share to Social Media
Share to: LinkedIn, Twitter/X, WhatsApp
).
UI/UX Enhancements
Cards redesigned with:
Shadow on hover,spacing,Tooltip support
Subtle hover transitions and scaling
Technical Stack
React + TypeScript
Tailwind CSS for styling
Custom hooks for LocalStorage
Modular Components: NewsletterCard, NewsletterSidebar, etc.
Files Modified
index.tsx – Main logic + search + layout
NewsletterCard.tsx – Design & action buttons
NewsletterSidebar.tsx – Tag filtering, Save toggle, collapsibility
useLocalStorage.ts – Hook for like/save state
posts.ts – Demo content with placeholder images
Future Suggestions
Add backend for newsletter content.
Use Algolia/Fuse.js for fuzzy search.
Add animation with Framer Motion.
Improve accessibility with screen reader support.
Checklist
npm run build
and attached scrrenshot in this PR.